FROM eclipse-temurin:8-jre-alpine
WORKDIR /app
COPY target/soyo-shop-*.jar app.jar
EXPOSE 9004

# 开发环境配置
ENV SPRING_PROFILES_ACTIVE=dev
ENV JAVA_OPTS="-Xms512m -Xmx1024m -XX:+UseG1GC"

ENTRYPOINT ["sh", "-c", "java $JAVA_OPTS -jar ./app.jar"]